{include file="header.html"}
<script>
$(function(){
	$('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
    $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
<style>
.member-bill{display:inline-block;border:1px red solid; background:#f60;padding:0px 10px 0px 10px;color:#fff;}
</style>

<div id="rightTop">
  <p>{$lang.deposit_manage}</p>
  <ul class="subnav">
    <li><a class="btn1" href="index.php?app=deposit">{$lang.manage}</a></li>
    <li><a class="btn1" href="index.php?app=deposit&amp;act=tradelist">{$lang.trade_manage}</a></li>
    <li><a class="btn1" href="index.php?app=deposit&act=drawlist">{$lang.withdraw_manage}</a></li>
    <li><a class="btn1" href="index.php?app=deposit&amp;act=rechargelist">{$lang.recharge_manage}</a></li>
    <li><a class="btn1" href="index.php?app=deposit&amp;act=setting">{$lang.system_setting}</a></li>
    <li><span>{$lang.download_monthbill}</span></li>
  </ul>
</div>
<div class="mrightTop">
   <div class="fontl">
        <form method="get">
             <div class="left">
             	<!--
                <input type="hidden" name="app" value="deposit" />
                <input type="hidden" name="act" value="monthbill" />
                <label>{$lang.select_month}:
                <input type="text" name="month" class="" value="{if $query.month}{$query.month}{else}如:2013-04{/if}" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
                -->
                <span class="member-bill">当前用户账单：<b>{$member.user_name}</b></span>
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=deposit&act=rechargelist">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
  <div class="fontr">{include file=page.top.html}</div>
</div>
<div class="tdare">
  <form method=get>
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $monthbill}-->
    <tr class="tatr1">
      <td class="firstCell">月份</td>
      <td>收入笔数</td>
      <td>收入金额（元）</td>
      <td>支出笔数</td>
      <td>支出金额（元）</td>
      <td>服务费笔数</td>
      <td>服务费金额（元）</td>
      <td class="handler">下载</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$monthbill item=bill key=key}-->
    <tr class="tatr2">
      <td class="firstCell">{$key}</td>
      <td>{$bill.income_count|default:0}</td>
      <td>{$bill.income_money|default:0}</td>
      <td>{$bill.outlay_count|default:0}</td>
      <td>{$bill.outlay_money|default:0}</td>
      <td>{$bill.charge_count|default:0}</td>
      <td>{$bill.charge_money|default:0}</td>
      <td class="handler">
      	<a target="_blank" href="{url app=deposit&act=downloadbill&user_id=$member.user_id&month=$key}">下载</a>
      </td>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data">
      <td colspan="8">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  </form>
  <!--{if $monthbill}-->
  <div id="dataFuncs">
    <div class="pageLinks">{include file=page.bottom.html}</div>
    <div class="clear"></div>
  </div>
  <!--{/if}-->
</div>        
{include file=footer.html}
